<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>javascript 阶段</title>
</head>
<body>


    <script>
        // 循环5次
        // 0 ， 1， 2， 3， 4
        for(var i = 0 ; i < 5 ; i++) {
            // 判断i == 2 跳出当前循环
            // console.log("第" + i + "次循环"); // 0 1 2 3 4
            if(i == 2){
                continue ;
                // 跳出当前的循环
            }
            console.log("第" + i + "次循环");
            // 0 1 3 4
        }
    </script>
</body>
</html>